package com.ruoyi.profession.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.profession.mapper.WorkAchievementsMapper;
import com.ruoyi.profession.domain.WorkAchievements;
import com.ruoyi.profession.service.IWorkAchievementsService;

/**
 * 工作业绩信息Service业务层处理
 * 
 * @author 靳双伟
 * @date 2024-06-02
 */
@Service
public class WorkAchievementsServiceImpl implements IWorkAchievementsService 
{
    @Autowired
    private WorkAchievementsMapper workAchievementsMapper;

    /**
     * 查询工作业绩信息
     * 
     * @param id 工作业绩信息主键
     * @return 工作业绩信息
     */
    @Override
    public WorkAchievements selectWorkAchievementsById(Long id)
    {
        return workAchievementsMapper.selectWorkAchievementsById(id);
    }

    /**
     * 查询工作业绩信息列表
     * 
     * @param workAchievements 工作业绩信息
     * @return 工作业绩信息
     */
    @Override
    public List<WorkAchievements> selectWorkAchievementsList(WorkAchievements workAchievements)
    {
        return workAchievementsMapper.selectWorkAchievementsList(workAchievements);
    }

    /**
     * 新增工作业绩信息
     * 
     * @param workAchievements 工作业绩信息
     * @return 结果
     */
    @Override
    public int insertWorkAchievements(WorkAchievements workAchievements)
    {
        return workAchievementsMapper.insertWorkAchievements(workAchievements);
    }

    /**
     * 修改工作业绩信息
     * 
     * @param workAchievements 工作业绩信息
     * @return 结果
     */
    @Override
    public int updateWorkAchievements(WorkAchievements workAchievements)
    {
        return workAchievementsMapper.updateWorkAchievements(workAchievements);
    }

    /**
     * 批量删除工作业绩信息
     * 
     * @param ids 需要删除的工作业绩信息主键
     * @return 结果
     */
    @Override
    public int deleteWorkAchievementsByIds(Long[] ids)
    {
        return workAchievementsMapper.deleteWorkAchievementsByIds(ids);
    }

    /**
     * 删除工作业绩信息信息
     * 
     * @param id 工作业绩信息主键
     * @return 结果
     */
    @Override
    public int deleteWorkAchievementsById(Long id)
    {
        return workAchievementsMapper.deleteWorkAchievementsById(id);
    }
}
